import { FacilityType } from "../info/GameEnum";
import { Location } from "../info/Predefine";

const { ccclass, property } = cc._decorator;

/**
 * 所有设施的基类
 */
@ccclass
export default abstract class Facility extends cc.Component {

    @property({
        type: cc.Enum(FacilityType),
    })
    facilityType: FacilityType = FacilityType.空;

    _locations: Location[];

    public get locations(): Location[] {
        return this._locations;
    }

    public set locations(v: Location[]) {
        this._locations = v;
    }


    facilityInfo: any;
}
